package com.yj.suncity.bean;

import org.json.JSONObject;

public class ProductBean {
	private String success;// ": "1",
	private String msg;// ": "获取信息成功",
	private JSONObject data;// ": {

	private String id = "";// ": "FFA7AA7A-C5D4-49A3-86A5-383B717dc865",
	private String goods_title = "";// ": "华硕笔记本电脑",
	private String goods_price = "";// ": "3000",
	private String img_url = "";// ": "1.jpg,2.jpg",
	private String good_num = "";// ": "50",
	private String silver_num = "";// ": "5000",
	private String silver_money = "";// ": "0",
	private String goods_address = "";// ": "凯撒大道300号"
	
	private String buy_type="";
	private String is_shoppurchase = "";
	private String is_delivery = "";
	private String delivery_type = "";
	private String goods_summary = "";

	private String goods_type = "";// ": "1",
	private String release_type = "";// ": "1",
	private String real_price = "";// ": "3500",
	private String silver_goodsnum = "";// ": "0",
	private String surplus_num = "";// ": "50",
	private String create_datetime = "";// ": "2015/4/3 0:00:00",
	private String user_id = "";// ": "1",
	private String zhaiyao = "";// ": "",
	private String goods_content = "";// ": "华硕超薄笔记本",
	private String sort_id = "";// ": "1",
	private String is_top = "";// ": "1",
	private String update_time = "";// ": "2015/4/3 0:00:00",
	private String is_show = "";// ": "1",
	private String is_down = "";// ": "2",

	public ProductBean(JSONObject json) {

		this.success = json.optString("success");
		this.msg = json.optString("msg");
		this.data = json.optJSONObject("data");
		if (data != null) {
			this.id = data.optString("id");
			this.goods_title = data.optString("goods_title");
			this.goods_price = data.optString("goods_price");
			this.img_url = data.optString("img_url");
			this.good_num = data.optString("good_num");
			this.silver_num = data.optString("silver_num");
			this.silver_money = data.optString("silver_money");
			this.goods_address = data.optString("goods_address");

			this.goods_type = data.optString("goods_type");// ": "1",
			this.release_type = data.optString("release_type");// ": "1",
			this.real_price = data.optString("real_price");// ": "3500",
			this.silver_goodsnum = data.optString("silver_goodsnum");// ": "0",
			this.surplus_num = data.optString("surplus_num");// ": "50",
			this.create_datetime = data.optString("create_datetime");// ": "2015/4/3
																		// 0:00:00",
			this.user_id = data.optString("user_id");// ": "1",
			this.zhaiyao = data.optString("zhaiyao");// ": "",
			this.goods_content = data.optString("goods_content");// ": "华硕超薄笔记本",
			this.sort_id = data.optString("sort_id");// ": "1",
			this.is_top = data.optString("is_top");// ": "1",
			this.update_time = data.optString("update_time");// ": "2015/4/3
																// 0:00:00",
			this.is_show = data.optString("is_show");// ": "1",
			this.is_down = data.optString("is_down");// ": "2",
			this.buy_type = data.optString("buy_type");
			this.is_shoppurchase = data.optString("is_shoppurchase");;
			this.is_delivery = data.optString("is_delivery");;
			this.delivery_type = data.optString("delivery_type");;
			this.goods_summary = data.optString("goods_summary");;
		}
	}

	public String getSuccess() {
		return success;
	}

	public String getMsg() {
		return msg;
	}

	public JSONObject getData() {
		return data;
	}

	public String getGoods_type() {
		return goods_type;
	}

	public String getRelease_type() {
		return release_type;
	}

	public String getReal_price() {
		return real_price;
	}

	public String getSilver_goodsnum() {
		return silver_goodsnum;
	}

	public String getSurplus_num() {
		return surplus_num;
	}

	public String getCreate_datetime() {
		return create_datetime;
	}

	public String getUser_id() {
		return user_id;
	}

	public String getZhaiyao() {
		return zhaiyao;
	}
	

	public String getBuy_type() {
		return buy_type;
	}

	public void setBuy_type(String buy_type) {
		this.buy_type = buy_type;
	}

	public String getIs_shoppurchase() {
		return is_shoppurchase;
	}

	public void setIs_shoppurchase(String is_shoppurchase) {
		this.is_shoppurchase = is_shoppurchase;
	}

	public String getIs_delivery() {
		return is_delivery;
	}

	public void setIs_delivery(String is_delivery) {
		this.is_delivery = is_delivery;
	}

	public String getDelivery_type() {
		return delivery_type;
	}

	public void setDelivery_type(String delivery_type) {
		this.delivery_type = delivery_type;
	}

	public String getGoods_summary() {
		return goods_summary;
	}

	public void setGoods_summary(String goods_summary) {
		this.goods_summary = goods_summary;
	}

	public void setSuccess(String success) {
		this.success = success;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public void setData(JSONObject data) {
		this.data = data;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setGoods_title(String goods_title) {
		this.goods_title = goods_title;
	}

	public void setGoods_price(String goods_price) {
		this.goods_price = goods_price;
	}

	public void setImg_url(String img_url) {
		this.img_url = img_url;
	}

	public void setGood_num(String good_num) {
		this.good_num = good_num;
	}

	public void setSilver_num(String silver_num) {
		this.silver_num = silver_num;
	}

	public void setSilver_money(String silver_money) {
		this.silver_money = silver_money;
	}

	public void setGoods_address(String goods_address) {
		this.goods_address = goods_address;
	}

	public void setGoods_type(String goods_type) {
		this.goods_type = goods_type;
	}

	public void setRelease_type(String release_type) {
		this.release_type = release_type;
	}

	public void setReal_price(String real_price) {
		this.real_price = real_price;
	}

	public void setSilver_goodsnum(String silver_goodsnum) {
		this.silver_goodsnum = silver_goodsnum;
	}

	public void setSurplus_num(String surplus_num) {
		this.surplus_num = surplus_num;
	}

	public void setCreate_datetime(String create_datetime) {
		this.create_datetime = create_datetime;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public void setZhaiyao(String zhaiyao) {
		this.zhaiyao = zhaiyao;
	}

	public void setGoods_content(String goods_content) {
		this.goods_content = goods_content;
	}

	public void setSort_id(String sort_id) {
		this.sort_id = sort_id;
	}

	public void setIs_top(String is_top) {
		this.is_top = is_top;
	}

	public void setUpdate_time(String update_time) {
		this.update_time = update_time;
	}

	public void setIs_show(String is_show) {
		this.is_show = is_show;
	}

	public void setIs_down(String is_down) {
		this.is_down = is_down;
	}

	public String getGoods_content() {
		return goods_content;
	}

	public String getSort_id() {
		return sort_id;
	}

	public String getIs_top() {
		return is_top;
	}

	public String getUpdate_time() {
		return update_time;
	}

	public String getIs_show() {
		return is_show;
	}

	public String getIs_down() {
		return is_down;
	}

	public String getId() {
		return id;
	}

	public String getGoods_title() {
		return goods_title;
	}

	public String getGoods_price() {
		return goods_price;
	}

	public String getImg_url() {
		return img_url;
	}

	public String getGood_num() {
		return good_num;
	}

	public String getSilver_num() {
		return silver_num;
	}

	public String getSilver_money() {
		return silver_money;
	}

	public String getGoods_address() {
		return goods_address;
	}

}
